package com.wang.controller;

import com.wang.service.MessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Classname SendMessageController
 * @Description TODO
 * @Date 2024/3/4 16:57
 * @Created by pc
 */
@RestController
public class SendMessageController {

    @Autowired
    private MessageProvider messageProvider;


    @GetMapping(value = "/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
